ChangeCanvas
TheChangeCanvas
method attaches a canvas to this facet.
void ChangeCanvas (in ODCanvas canvas);
canvas
- A reference to a canvas to attach to this facet.
DISCUSSION
This method in turn calls its canvas'sSetFacet
method to ensure the canvas has a reference back to this facet. After this method executes successfully, you can display this facet and its embedded facets on the specified canvas.
- Mac OS
- It is the caller's responsibility to deallocate the canvas's storage when it is no longer needed.
![]()
EXCEPTIONS
kODErrCanvasHasNoOwner
- The offscreen canvas has no owner.
SEE ALSO
TheODCanvas::SetFacet
method (page 78).
TheODFacet::GetCanvas
method (page 246).
TheODFacet::HasCanvas
method (page 250).
"Adding and Removing Canvases" on page 133 in OpenDoc Programmer's Guide.
"Printing the Document" on page 174 in OpenDoc Programmer's Guide.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help